package com.luoc.service;

/**
 * @Author: luoc
 * @Date: 2019/10/10 15:11
 */
public abstract class Componet {

    public Mediator mediator;

    public abstract void update();

    public void ComponetChange(){
         mediator.componentChange(this);
    }

    public Mediator getMediator() {
        return mediator;
    }

    public void setMediator(Mediator mediator) {
        this.mediator = mediator;
    }
}
